﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class manage_database_sysprocesses : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //        string sql = @"
        //                        select  hostname, program_name,cmd,net_address,loginame
        //                        from  master.dbo.sysprocesses
        //                        where status = 'runnable'";
        //        DataSet ds = GlobalSettings.DefaultSqlHelper.ExecuteDataset(sql);
        //        ds.Clear();
        //        DataList1.DataSource = ds;
        //        DataList1.DataBind();


        List<p> list = new List<p>();
        list.Add(new p() { Name = "张", Sex = "女" });
        list.Add(new p() { Name = "张无", Sex = "女" });
        list.Add(new p() { Name = "张无忌", Sex = "女" });
        list.Add(new p() { Name = "张无", Sex = "女" });
        list.Add(new p() { Name = "张", Sex = "女" });

        DataList1.DataSource = list;
        DataList1.DataBind();

        ListView1.DataSource = list;
        ListView1.DataBind();
    }

    public class p
    {
        string name;
        string sex;

        public string Name
        {
            set { this.name = value; }
            get { return this.name; }
        }

        public string Sex
        {
            set { this.sex = value; }
            get { return this.sex; }
        }
    }
}
